/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

class every_number_sum {
    public static void main(String[] args) {
        System.out.println(every_number_sum(1));
    }
    /**
     * description:给一个正整数 求每一位之和
     */
    public  static int every_number_sum(int number){
        int sum = 0;
        while (number>0) {
            int temp = number%10;
            sum += temp;
            number = number/10;
        }
        return sum;
    }
}